<div class="am-u-sm-12 widget" style="margin:10px ;">
	<div style="width:100%;height: 100%;">
	<div class="am-u-sm-12  cl-p" >
		<div class="am-u-sm-12">
			<form class="am-form-inline tpl-form-border-form">
				<div class="widget am-u-sm-12">

					<div class="am-u-sm-12 am-form-group">
						<table width="100%" class="am-table am-table-compact am-text-nowrap tpl-table-black">
							<thead>
								<tr> 
									<th>菜单名</th>
									<th>路径</th>
									<th>状态</th>
									<th>图标</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								{foreach $tree as $key => $item}
								<tr class="gradeX">
									<td>{:str_repeat('├ ', $item.level)} {$item.name}</td>
									<td>{$item.url}</td>
									<td>{$item.state}</td>
									<td><i class="am-icon-{$item.icon} sidebar-nav-link-logo"></i></td>
									<td>
										<div class="tpl-table-black-operation">
											<a href="javascript:;">
												<i class="am-icon-pencil"></i> 启用
											</a>

											<a href="javascript:;" class="tpl-table-black-operation-del">
												<i class="am-icon-pencil"></i> 禁用
											</a>
											<a href="{:url('edit',['id'=>$item.id])}">
												<i class="am-icon-pencil"></i> 编辑
											</a>
										</div>
									</td>
								</tr>
								{/foreach}
							</tbody>
						</table>
					</div>
					<div class="am-u-sm-12">
						<a href="/admin/menu/add" class="am-btn am-btn-primary am-radius" style="margin-top: -2px;">添加菜单</a>
					</div>
				</div>
			</form>
		</div>
	</div>
	</div>
</div>